<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<script>
/**
 * this stub is for the pages which may need the VIP Card search
 */
 function searchCust(){
	 var custName = $("#custName").val();
	 var param = "";
	 var indicator = $("#indicator").val();
	 var isAll = $("#isAll").val();

	 if (isAll != undefined)
		 param = "formBean.isAll=" + isAll+ "&";;

	 if (indicator != undefined){
		 param += "formBean.indicator=" + indicator + "&";
	 }
	 
	 
	 if (custName != undefined)
		 param += "formBean.cust.name=" + custName;
	 

	 var url = "headQCustMgmtJSPAction!listHeadCustHQ" + "?" + param;
	 window.open(encodeURI(encodeURI(url)),'新窗口','height=400, width=400, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');  
}

 function clearCustName(){
		$("#custId").val("");
		$("#custName").val("");
	}

function selectChainStore(custId, custName){
	$("#custId").val(custId);
	$("#custName").val(custName);

	changeChainStore(custId);
}
</script>
		<s:hidden name="formBean.headQCust.id" id="custId"/>
		<s:textfield name="formBean.headQCust.name" id="custName" size="18" readonly="false"/><input type="button" id="checkCustBt" value="..." onclick="searchCust();"/><input type="button" id="clearBtn" value="清除" onclick="clearCustName();"/>
